package com.clementheliou.cheliou.web.controller.common.navigation;

import java.io.Serializable;

import org.springframework.stereotype.Controller;

/**
 * Controller shared between sessions to navigate in the application.
 * 
 * @author Clément HELIOU (clement.heliou@gmail.com)
 * @see {@link Controller}.
 * @since 1.0
 */
@Controller
public class NavigationBean implements Serializable {

	/**
	 * UID for serialization.
	 * 
	 * @author Clément HELIOU (clement.heliou@gmail.com)
	 * @since 1.0
	 */
	private static final long serialVersionUID = -8410717502917362292L;

	/**
	 * Method used to access the gallery page.
	 * 
	 * @author Clément HELIOU (clement.heliou@gmail.com)
	 * @return the home page URL.
	 * @since 1.0
	 */
	public String getAccessGalleryPage() {
		return "/pages/gallery.xhtml?faces-redirect=true";
	}

	/**
	 * Method used to access the home page.
	 * 
	 * @author Clément HELIOU (clement.heliou@gmail.com)
	 * @return the home page URL.
	 * @since 1.0
	 */
	public String getAccessHomePage() {
		return "/home.xhtml";
	}

	/**
	 * Method used to access the log in page.
	 * 
	 * @author Clément HELIOU (clement.heliou@gmail.com)
	 * @return the log in page URL.
	 * @since 1.0
	 */
	public String getAccessLogInPage() {
		return "/pages/logIn.xhtml";
	}

	/**
	 * Method used to access the "my account" page.
	 * 
	 * @author Clément HELIOU (clement.heliou@gmail.com)
	 * @return the "my account" page URL.
	 * @since 1.0
	 */
	public String getAccessMyAccountPage() {
		return "/pages/user/myAccount.xhtml?faces-redirect=true";
	}

	/**
	 * Method used to access the subscription page.
	 * 
	 * @author Clément HELIOU (clement.heliou@gmail.com)
	 * @return the subscription page URL.
	 * @since 1.0
	 */
	public String getAccessSubscriptionPage() {
		return "/pages/subscription.xhtml";
	}

	/**
	 * Method used to access the technical data sheet page.
	 * 
	 * @author Clément HELIOU (clement.heliou@gmail.com)
	 * @return the subscription page URL.
	 * @since 1.0
	 */
	public String getAccessTechnicalDataSheetPage() {
		return "/pages/technicalDataSheet.xhtml?faces-redirect=true";
	}

}
